package cn.lysj.framework.foodv2.domain;

import cn.lysj.framework.base.BaseEntity;
import cn.lysj.framework.common.validate.annotation.NotBlank;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.math.BigDecimal;

/**
 * @author drj
 * @description 菜品信息
 * @create 2018-11-09 11:20:17
 **/
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class Food extends BaseEntity {

    private String foodTypeId;
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal money; //价格
    @Column(columnDefinition = "TEXT")
    private String logo; //图片
    private Integer virtualSellNum;//虚拟销量
    private String foodMaterial;//食物材料
    private Integer actSellNum;//实际销量
    private String remark;//备注

    private Integer onSale; //是否再销售 -1:否 ,1:是
    private Integer isUse; //上架 1,  下架 2


}
